package com.ruoyi.project.blog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 网站导航对象 b_navigation
 * 
 * @author ruoyi
 * @date 2023-10-10
 */
public class BNavigation
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 网站分类id */
    @Excel(name = "网站分类id")
    private Long siteClassId;

    /** 网站标题 */
    @Excel(name = "网站标题")
    private String name;

    /** 网址地址 */
    @Excel(name = "网址地址")
    private String url;

    /** 网站logo */
    @Excel(name = "网站logo")
    private String logo;

    /** 网站描述 */
    @Excel(name = "网站描述")
    private String info;
    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSiteClassId(Long siteClassId) 
    {
        this.siteClassId = siteClassId;
    }

    public Long getSiteClassId() 
    {
        return siteClassId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setLogo(String logo) 
    {
        this.logo = logo;
    }

    public String getLogo() 
    {
        return logo;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("siteClassId", getSiteClassId())
            .append("name", getName())
            .append("url", getUrl())
            .append("logo", getLogo())
            .append("info", getInfo())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
